package com.googlecode.openauth.web.entity;

import java.util.List;

public class ActionPageBean<T> {
	public int getCurrentPageNo() {
		return currentPageNo;
	}

	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}

	public int getPrevPageNo() {
		return prevPageNo;
	}

	public void setPrevPageNo(int prevPageNo) {
		this.prevPageNo = prevPageNo;
	}

	public int getNextPageNo() {
		return nextPageNo;
	}

	public void setNextPageNo(int nextPageNo) {
		this.nextPageNo = nextPageNo;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	private int currentPageNo = 1;
	private int prevPageNo = 1;
	private int nextPageNo = 1;
	private int totalCount = 0;
	private int pageNum = 1;
	private List<T> data = null;

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append(" current page no : " + currentPageNo);
		builder.append(" prev page no : " + prevPageNo);
		builder.append(" next page no : " + nextPageNo);
		builder.append(" total count : " + totalCount);
		builder.append(" page num : " + pageNum);
		return builder.toString();
	}
}
